package com.xiaoma.base.serialiable;

import java.io.Serializable;

/**
 * 要实现Serializable接口，不实现在序列化的时候会报错
 */
public class User implements Serializable {

    private String name;

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
